package com.bw.paper.mvp.contact;

import com.bw.paper.mvp.base.model.BaseEntity;
import com.bw.paper.mvp.base.model.IModel;
import com.bw.paper.mvp.base.view.IView;

import java.util.Map;

import io.reactivex.Observable;
//契约接口

public interface LoginContract {
    interface LoginModel extends IModel{
//        token接口的被观察者
    Observable<BaseEntity>request(Map<String,Object>map);

    }
    interface LoginView extends IView {
//        请求完成后回调通知activity页面跳转
void refreshView(BaseEntity entity);
    }
}
